package audiobits;

import java.io.IOException;
import java.util.Date;


import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;

import javax.servlet.http.*;

@SuppressWarnings("serial")
public class DemowreckServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		resp.setContentType("text/plain");
		resp.getWriter().println("this is the latest and greatest");
	
			
		DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
		Entity Song = new Entity("Song");
		String name = req.getParameter("title");
		Song.setProperty("Name", name );
	
		Song.setProperty("entered", new Date());
		datastore.put(Song);
	
		
	}
	
}
